<?php
/******************************************************************
** This is the only file in which you need to change any         **
** information and most of the time DB_HOST does NOT need to be  **
** changed.                                                      **
******************************************************************/
/**********************
 * DATABASE CONSTANTS *
 **********************/
define("DB_HOST", "{DBHOST}");
define("DB_USER", "{DBUSER}");
define("DB_PASS", "{DBPASS}");
define("DB_NAME", "{DBNAME}");
define("TABLE_PREFIX", "{TABLEPRE}");

/*****************************
 * PRIVATE MESSAGE CONSTANTS *
 *****************************/
define("PM_NEW_MESSAGE", 0);
define("PM_READ_MESSAGE", 1);
define("PM_REPLIED_MESSAGE", 2);
define("PM_TRASH_MESSAGE", 3);
define("PM_DELETE_MESSAGE", 4);

/**************************
 * SYSTEM EMAIL CONSTANTS *
 **************************/


//what level does announcements get
define("ANNOUCEMENT_DISPLAY_ORDER", 99);

/*********************************************************
** Function: dbconnect()                                **
**     Desc: Perform database server connection and     **
**           database selection operations              **
*********************************************************/
function dbConnect() {
    // Attempt to connect to database server
    $link = @mysql_connect(DB_HOST, DB_USER, DB_PASS);

    // If connection failed...
    if (!$link) {
        // Inform Flash of error and quit
        print "<b>Couldn't connect to database server</b> <br>";
    }

    // Attempt to select our database. If failed...
    if (!@mysql_select_db(DB_NAME)) {
        // Inform Flash of error and quit
        print "<b>Couldn't find database DB_NAME </b><br>";
    }

    return $link;
}
?>